<?php
/**
 * 获取角色权限
 * User: Administrator
 * Date: 2018\9\12 0012
 * Time: 15:13
 */

namespace app\Lib\InterfaceIn\AdminAuth\GetAuthorization;


use app\Lib\InterfaceIn\Role\RoleHandle;

interface GetRoleAuthHandle
{
    /**
     * GetRoleAuthHandle constructor.
     * @param RoleHandle $role
     * @param bool $cache
     */
    public function __construct(RoleHandle $role,$cache =true);
    /**
     * 执行
     * @return array
     */
    public function run();

    /**
     * 删除缓存
     * @return bool
     */
    public function delCache();
}